@import "theme";

ul,
li {
    list-style: none;
}

a,
a:hover {
    text-decoration: none;
}

.metro-box {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
    .metro-item {
        position: relative;
        display: block;
        img {
            width: 100%;
        }
        .metro-label {
            position: absolute;
            top: 0;
            padding: 13px 39px 11px;
            background-color: #fff;
            border: 1px solid #ccc;
        }
        &:hover {
            .metro-label {
                background: rgba(40, 121, 254, 0.9);
                border: 2px solid rgba(25, 25, 25, 0);
                color: white;
            }
        }
        &:nth-of-type(2) {
            grid-column: 2 / 3;
            grid-row: 1 / 3;
        }
        &:nth-of-type(6) {
            grid-column: 3 / 5;
            grid-row: 2 / 3;
        }
    }
}

.product-item {
    position: relative;
    .thumb {
        img {
            width: 100%;
        }
    }

    .product-container {
        position: relative;
        top: -80px;
        transition: top 1s;
    }

    .option-row {
        margin-top: 15px;
        li {
            display: inline-block;
            width: 40px;
            height: 40px;
            box-sizing: border-box;
            border-radius: 5px;
            &.active {
                border: 2px solid #03a9f5;
            }
        }
        img {
            width: 100%;
            height: 100%;
        }
    }

    .info {
        background-color: #fff;
        margin-top: 20px;
    }

    .product-footer {
        text-align: center;
    }
    .title {
        text-align: center;
        font-size: 14px;
        font-weight: 400;
    }

    .price {
        text-align: center;
        font-size: 16px;
        line-height: 20px;
        font-weight: 500;
        color: #191919;
        .old-money {
            color: #999;
            text-decoration: line-through;
        }
    }

    .tags {
        position: absolute;
        top: 7px;
        left: 8px;
        z-index: 3;
        a {
            display: block;
            padding: 3px 4px 2px;
            background: #03a9f5;
            color: white;
            margin-left: 3px;
            margin-top: 3px;
            font-size: 12px;
            line-height: 1;
        }
    }
    .action {
        position: absolute;
        top: 7px;
        right: 8px;
        a {
            display: block;
            background: rgba(255, 255, 255, 0.9);
            color: #191919;
            width: 46px;
            height: 46px;
            border-radius: 50%;
            position: relative;
            text-align: center;
            .fa {
                line-height: 46px;
            }
            span {
                display: none;
                position: absolute;
                right: 50px;
                top: 10px;
                background-color: white;
                border: 1px solid #ccc;
                color: #777;
                word-break: keep-all;
                padding: 2px 5px;
            }
            &:hover {
                background: rgba(40, 121, 254, 0.9);
                color: #ffffff;
                span {
                    display: block;
                }
            }
        }
    }

    .add-to-cart {
        background-color: #2879fe;
        color: #ffffff;
        padding: 3px 16px 9px;
    }
    &:hover {
        .product-container {
            top: -120px;
        }
    }
}

.countdown {
    .countdown-row {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        align-content: center;
    }
    .countdown-section {
        width: 100%;
        max-width: 65px;
        position: relative;
        margin: 0 2px;
        padding: 19px 0 13px;
        white-space: nowrap;
        background-color: rgba(255, 255, 255, 0.9);
        color: #2879fe;
        text-align: center;
    }
    .countdown-amount {
        font-size: 16px;
        line-height: 15px;
        display: block;
        font-weight: 500;
    }
    .countdown-period {
        display: block;
        padding-top: 1px;
    }
}

.search-box {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 0;
    .container {
        position: relative;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .title {
        color: #777777;
    }
    .fa-times {
        position: absolute;
        top: 0;
        right: 0;
        margin-top: -1px;
    }
    form {
        width: 100%;
        position: relative;
    }
    .search-input {
        position: relative;
        margin-top: 10px;
        input {
            background: transparent;
            font-size: 24px;
            font-weight: 500;
            border: none;
            border-bottom: 1px solid #eceaea;
            padding: 11px 12px 10px 0px;
            box-shadow: none;
            outline: none;
            width: 100%;
            color: #191919;
            border-radius: 0;
            text-transform: uppercase;
            transition: all 0.2s linear;
        }
        .fa {
            position: absolute;
            top: 18px;
            right: 0;
            font-size: 24px;
            color: #777;
        }
    }
}
